<table class="report">
<?php
if (isset($PreparedTemplates['report_form']['empty'])) {
	echo $PreparedTemplates['report_form']['empty'];
}
else {
?>
<tr><th>
	Date
	</th>
	<th>
	Message_Type
	</th>
	<th>
	Username
	</th>
	<th>
	Groupname
	</th>
	<th>
	Caller_Id
	</th>
	<th>
	Authen_Failure_Code
	</th>
	<th>
	Nas_Port
	</th>
	<th>
	NAS_IP_Address
	</th>
	<th>
	Access_Device
	</th></tr>
<?php 
foreach ($PreparedTemplates['report_form'] as $report_row)
{
?>

  <tr>
  	<td>
	<?php echo $report_row['date']?>
	</td>
	<td>
	<?php echo $report_row['message_type']?>
	</td>
	<td>
	<?php echo $report_row['username']?>
	</td>
	<td>
	<?php echo $report_row['groupname']?>
	</td>
	<td>
	<?php echo $report_row['caller_id']?>
	</td>
	<td>
	<?php echo $report_row['authen_failure_code']?>
	</td>
	<td>
	<?php echo $report_row['nas_port']?>
	</td>
	<td>
	<?php echo $report_row['nas_ip_address']?>
	</td>
	<td>
	<?php echo $report_row['access_device']?>
	</td>
  </tr>
<?php 
}}
?>
</table>